#include<stdio.h>
int main()
{
	int A[]={55,24,67,15,34,94,27,21};
	int n=8;
	int t;
	int i,j;
	for(i=0;i<n;i++){
		for(j=0;j<n-i-1;j++){
			if(A[j+1]<A[j]){
				t=A[j];
				A[j]=A[j+1];
				A[j+1]=t;
			}	
		}
	}
	
	for(i=0;i<n;i++){
		printf("%d ",A[i]);
	}
}
